package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.New;
import cn.wolfcode.trip.base.domain.UserNew;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserNewMapper {
    int insert(UserNew record);

    List<UserNew> selectAll();

    void delete(Long id);

    UserNew getNewsDetailToUser(@Param("userId") Long userId, @Param("newsId") Long newsId);

    List<New> getAllNewsByUser(Long userId);

    void saveNewsDetailToUser(@Param("userId") Long userId, @Param("newsId") Long newsId);

    void deleteNewsDetailToUser(@Param("userId") Long userId, @Param("newsId") Long newsId);
}